﻿using UnityEngine;
using System.Collections;

public class TitleClick : MonoBehaviour {

    public AudioClip m_clicksound1;
    protected AudioSource m_audio1;
    public Transform Title;
    public Transform Middle;
    public Transform Last;
    public Transform m_transform;

	// Use this for initialization
	void Start () {
        m_transform = this.transform;
        m_audio1 = this.audio;
	
	}
 
    public void Onclick()
    {
        if (Input.GetMouseButton(0))
        {
            Instantiate(Title, m_transform.position, Quaternion.identity);
            m_audio1.PlayOneShot(m_clicksound1);

        }
    }
}
